package com.hspedu.poly_.polyparameter;

public class Manager extends Employee {
    private double bonus;
    private String manager;


    //特有类：管理
    public void manager(){
        System.out.println("经理" + getName() + "正在管理"+manager+"..");
    }

    public Manager(String name, double salary, double bonus, String manager) {
        super(name, salary);
        this.bonus = bonus;
        this.manager = manager;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    @Override
    public String getAnnual() {
        return "经理"+super.getAnnual() + "\n职位:" + manager + "\n奖金:" + bonus + "\n共计:"+(getSalary()*12+bonus);
    }


}
